﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SuperKnowledgeDatabase2000Client
{
    public static class WS
    {
        private static object sync = new object();
        private static KennismanagementReference.KennismanagementClient _WebServiceInstance;

        public static KennismanagementReference.KennismanagementClient MyWebServiceInstance
        {
            get
            {
                if (_WebServiceInstance == null)
                    lock (sync)
                        if (_WebServiceInstance == null)
                            _WebServiceInstance = new KennismanagementReference.KennismanagementClient();
                            _WebServiceInstance.Endpoint.Address = new System.ServiceModel.EndpointAddress(ConfigSettings.GetEndpointAddress());
                return _WebServiceInstance;
            }
        }
    }

}
